package com.gaofeng.day21;

import javax.swing.*;
import javax.swing.plaf.PanelUI;
import java.awt.*;

public class LoginForm  extends JFrame {

    public LoginForm(){
        // 设置图标
        setIconImage(Toolkit.getDefaultToolkit().getImage("./images/logo.png"));
        //
        this.initView();
    }
    public void initView(){
//        new  JLabel(new ImageIcon())



        JFrame jf = new JFrame("对话框");
        jf.setSize(600,450);
        jf.setLocation(400,400);
        jf.setVisible(true);

        JButton go = new JButton("提交");
        go.setFont(new Font(null,1,20));
        go.setBounds(250,20,100,40);
        go.setBackground(Color.blue);
        go.setForeground(Color.white);

        jf.add(go);
    }
}
